package service.impl;

import dao.StudentsDao;
import dao.impl.StudentsDaoimpl;
import entity.Students;
import service.StudentsService;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

public class StudentsServiceimpl implements StudentsService {
    StudentsDao stuu=new StudentsDaoimpl();

    @Override
    public List<Students> cx(String xh,String name,int page, int pageSize) throws SQLException, NamingException, ClassNotFoundException {
        return stuu.cx(xh, name,page,pageSize);
    }

    @Override
    public int getTotalCount(String xh, String name) throws SQLException, NamingException, ClassNotFoundException {
        return stuu.getTotalCount(xh,name);
    }

    @Override
    public int modify(String stu, String name, String gender, int id) throws SQLException, NamingException, ClassNotFoundException {
        return stuu.modify(stu, name, gender, id);
    }

    @Override
    public int append(String stu, String name, String gender) throws SQLException, NamingException, ClassNotFoundException {
        return stuu.append(stu, name, gender);
    }

    @Override
    public int delete(int id) throws SQLException, NamingException, ClassNotFoundException {
        return stuu.delete(id);
    }

    @Override
    public List<Students> cxcw() throws SQLException, ClassNotFoundException {
        return stuu.cxcw();
    }

}
